import sys
import platform
from syncClipboard import syncClipboard
from notifier import notifier
from picbed import picbed

if __name__ == "__main__":
    if len(sys.argv) != 2:
        print("The number of parameters is invalid.")
        exit(0)

    s = platform.system()
    if sys.argv[1] == '1':
        syncClipboard('upload')

        if s == 'Windows':
            # Windows
            print('Success.')
        elif s == 'Darwin':
            # macOS
            notifier('云剪贴板', '上传完成。')

    elif sys.argv[1] == '2':
        syncClipboard()

        if s == 'Windows':
            # Windows
            print('Success.')
        elif s == 'Darwin':
            # macOS
            notifier('云剪贴板', '下载完成。')

    elif sys.argv[1] == '3':
        picbed()
        syncClipboard('upload')

        if s == 'Windows':
            # Windows
            print('Success.')
        elif s == 'Darwin':
            # macOS
            notifier('图床', '上传完成。')
